package be.kuleuven.cs.mume.animations;

import org.mt4j.components.TransformSpace;
import org.mt4j.components.visibleComponents.shapes.AbstractShape;
import org.mt4j.components.visibleComponents.shapes.MTLine;
import org.mt4j.util.animation.AnimationEvent;
import org.mt4j.util.animation.IAnimationListener;

public class ScalingAnimation implements IAnimationListener {

	@Override
	public void processAnimationEvent(AnimationEvent ae) {
		float factor = ae.getCurrentValue();
		//System.out.println(factor);
		AbstractShape target = (AbstractShape)ae.getTargetObject();
		target.scaleGlobal(factor, factor, 1, target.getCenterPointGlobal());
	}

}
